package com.ruoyi.asms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.asms.domain.AsmsFaultFeedbackStage;
import com.ruoyi.asms.mapper.AsmsFaultFeedbackStageMapper;
import com.ruoyi.asms.service.IAsmsFaultFeedbackStageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 故障反馈阶段信息Service业务层处理
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Service
public class AsmsFaultFeedbackStageServiceImpl extends ServiceImpl<AsmsFaultFeedbackStageMapper, AsmsFaultFeedbackStage>  implements IAsmsFaultFeedbackStageService
{
    @Autowired
    private AsmsFaultFeedbackStageMapper asmsFaultFeedbackStageMapper;

    /**
     * 查询故障反馈阶段信息
     * 
     * @param faultFeedbackStageId 故障反馈阶段信息主键
     * @return 故障反馈阶段信息
     */
    @Override
    public AsmsFaultFeedbackStage selectAsmsFaultFeedbackStageByFaultFeedbackStageId(Long faultFeedbackStageId)
    {
        return asmsFaultFeedbackStageMapper.selectAsmsFaultFeedbackStageByFaultFeedbackStageId(faultFeedbackStageId);
    }

    /**
     * 查询故障反馈阶段信息列表
     * 
     * @param asmsFaultFeedbackStage 故障反馈阶段信息
     * @return 故障反馈阶段信息
     */
    @Override
    public List<AsmsFaultFeedbackStage> selectAsmsFaultFeedbackStageList(AsmsFaultFeedbackStage asmsFaultFeedbackStage)
    {
        return asmsFaultFeedbackStageMapper.selectAsmsFaultFeedbackStageList(asmsFaultFeedbackStage);
    }

    /**
     * 新增故障反馈阶段信息
     * 
     * @param asmsFaultFeedbackStage 故障反馈阶段信息
     * @return 结果
     */
    @Override
    public int insertAsmsFaultFeedbackStage(AsmsFaultFeedbackStage asmsFaultFeedbackStage)
    {

        return asmsFaultFeedbackStageMapper.insertAsmsFaultFeedbackStage(asmsFaultFeedbackStage);
    }

    /**
     * 修改故障反馈阶段信息
     * 
     * @param asmsFaultFeedbackStage 故障反馈阶段信息
     * @return 结果
     */
    @Override
    public int updateAsmsFaultFeedbackStage(AsmsFaultFeedbackStage asmsFaultFeedbackStage)
    {


        return asmsFaultFeedbackStageMapper.updateAsmsFaultFeedbackStage(asmsFaultFeedbackStage);
    }

    /**
     * 批量删除故障反馈阶段信息
     * 
     * @param faultFeedbackStageIds 需要删除的故障反馈阶段信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsFaultFeedbackStageByFaultFeedbackStageIds(Long[] faultFeedbackStageIds)
    {
        return asmsFaultFeedbackStageMapper.deleteAsmsFaultFeedbackStageByFaultFeedbackStageIds(faultFeedbackStageIds);
    }

    /**
     * 删除故障反馈阶段信息信息
     * 
     * @param faultFeedbackStageId 故障反馈阶段信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsFaultFeedbackStageByFaultFeedbackStageId(Long faultFeedbackStageId)
    {
        return asmsFaultFeedbackStageMapper.deleteAsmsFaultFeedbackStageByFaultFeedbackStageId(faultFeedbackStageId);
    }
}
